package com.study.talk.data.model.vo;


import com.study.common.annotation.Desc;
import com.study.talk.netty.message.request.CreateGroupRequest;

public class GroupInfoVo {
    @Desc("群聊名称")

    private String name;

    @Desc("群聊头像地址")
    private String avatar;

    @Desc("群聊背景图片")
    private String bgImg;

    @Desc("群聊标签")
    private String tag;

    @Desc("群聊介绍")
    private String introduce;

    @Desc("群主id")
    private Integer mainUser;

    public GroupInfoVo(CreateGroupRequest createGroupRequest) {
        this.name = createGroupRequest.getGroupName();
        this.avatar = createGroupRequest.getAvatar();
        this.bgImg = createGroupRequest.getBgImg();
        this.tag = createGroupRequest.getTag();
        this.introduce = createGroupRequest.getIntroduce();
        this.mainUser = createGroupRequest.getMainUser();
    }

    public GroupInfoVo(String name, String avatar, String bgImg, String tag, String introduce, Integer mainUser) {
        this.name = name;
        this.avatar = avatar;
        this.bgImg = bgImg;
        this.tag = tag;
        this.introduce = introduce;
        this.mainUser = mainUser;
    }

    public GroupInfoVo() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getBgImg() {
        return bgImg;
    }

    public void setBgImg(String bgImg) {
        this.bgImg = bgImg;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public Integer getMainUser() {
        return mainUser;
    }

    public void setMainUser(Integer mainUser) {
        this.mainUser = mainUser;
    }
}
